$(document).ready(function() {
	
	//开场第一屏动画开始
	
		
		$(".section1 .zss_hengline").addClass("helinadd");
		
		$('.zss_syssec1').delay(100).animate({

			top: '0'

		}, 1500, 'easeOutExpo');
		
		$('.zss_jyimg').delay(300).animate({

			top: '0'

		}, 1500, 'easeOutExpo');
		
	
	
	//开场第一屏动画结束
	
	$(".dowebok").fullpage({

		slidesColor: ['#FFFEF2', 'white', '#FFFEF2', 'white'],

		verticalCentered: true,

		anchors: ['page1', 'page2', 'page3', 'page4'],

		menu: '#zss_nav',

		//paddingTop: '3rem',

		scrollingSpeed: 600,

		easing: "easeOutCubic",

		navigation: true,

		css3: true,

		afterLoad: function(anchorLink, index) {
			
			if(index == '1') {

				$(".section1 .zss_hengline").addClass("helinadd");
				
				$('.zss_syssec1').delay(100).animate({

					top: '0'
		
				}, 1500, 'easeOutExpo');
				
				$('.zss_jyimg').delay(300).animate({
		
					top: '0'
		
				}, 1500, 'easeOutExpo');

			}

			
			if(index == 2) {
				
				$(".section2 .zss_hengline").addClass("helinadd");
				
				setTimeout(function(){
					$(".zss_qzjy2 img").addClass("zss_qzjy2imgplus")
				},400)
					

			}

			if(index == 3) {
				
				$(".section3 .zss_hengline").addClass("helinadd");
				
				$('.zss_se3jfbox,.zss_kctx').animate({

					left: '0'
		
				}, 1500, 'easeOutExpo');
				
			}

			if(index == 4) {
				
				$(".section4 .zss_hengline").addClass("helinadd");
				
				$('.section4 .zss_qzjyse1text,.section4 .zss_jximg').addClass("zss_qzjyplus")
					

			}
			
		},

		onLeave: function(index, direction) {
			
			if(index == '1') {
				
				$(".section1 .zss_hengline").removeClass("helinadd");
				
				$('.zss_syssec1').delay(300).animate({

					top: '100rem'
		
				}, 100, 'easeOutExpo');
				
				$('.zss_jyimg').delay(500).animate({
		
					top: '100rem'
		
				}, 100, 'easeOutExpo');
		

			}

			if(index == '2') {
				
				$(".section2 .zss_hengline").removeClass("helinadd");
				
				setTimeout(function(){
					$(".zss_qzjy2 img").removeClass("zss_qzjy2imgplus")
				},400)
					
			}

			if(index == '3') {
				
				$(".section3 .zss_hengline").removeClass("helinadd");
				
				$('.zss_se3jfbox').delay(300).animate({

					left: '-100rem'
		
				}, 100, 'easeOutExpo');
				
				$('.zss_kctx').delay(300).animate({

					left: '100rem'
		
				}, 100, 'easeOutExpo');

			}

			if(index == '4') {
				
				$(".section4 .zss_hengline").removeClass("helinadd");
				
				setTimeout(function(){
					
					$('.section4 .zss_qzjyse1text,.section4 .zss_jximg').removeClass("zss_qzjyplus")
					
				},400)

			}
			
		}

	});


	
});